package com.hns.can.master.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hns.can.base.entity.SysUserEntity;
import com.hns.can.common.web.BaseController;
import com.hns.can.master.entity.AppComprScoreSetEntity;
import com.hns.can.master.service.SysCompreAbilitySetService;
/**
 * 综合能力设置
 * @author:lan
 * @email:763836737@qq.com
 * @version Revision 2.0.0
 */
@Controller
@RequestMapping("/sysCompreAbilitySet")
public class SysCompreAbilitySetController extends BaseController{
    
    @Autowired
    private SysCompreAbilitySetService sysCompreAbilitySetService;
    
    
  /**
   * 查询企业综合评分设置
   * @param request
   * @param response
   * @return
   * @throws Exception
   * @author:lan
   * @email:763836737@qq.com
   */
    @RequestMapping("/getSysCompreAbilitySet")
    @ResponseBody
    public Object getSysCompreAbilitySet(String corpId) throws Exception {
        List<AppComprScoreSetEntity> list = sysCompreAbilitySetService.getSysCompreAbilitySet(corpId);
        return this.getReturnResult(list);
    }
    
    
    /**
     * 新增、修改企业综合评分设置
     * @param Entity
     * @return
     * @throws Exception
     * @author:lan
     * @email:763836737@qq.com
     */
    @RequestMapping("/modoifSysCompreAbilitySet")
    @ResponseBody
    public Object modoifSysCompreAbilitySet(AppComprScoreSetEntity Entity) throws Exception {
        SysUserEntity user = this.getCurrentUser().getUser();
        sysCompreAbilitySetService.modoifSysCompreAbilitySet(user, Entity);
        return getReturnResult();
    } 

}
